package sv.com.objetos.jqgrid;

import java.util.ArrayList;
import java.util.List;

import net.sf.json.JSONObject;

public class CamposJQGrid {
	String searchField;
	String searchString;
	Integer rows=new Integer(10);
	String id;
	String sidx;
	String sord;
	Integer page;
	Boolean _search;
	String nd;
	
	
	Filtros filtros = new Filtros();
	ArrayList<Object> valoresBusqueda=new ArrayList<Object>();
	
	public String getSearchField() {
		return searchField;
	}

	public void setSearchField(String searchField) {
		this.searchField = searchField;
	}

	public String getSearchString() {
		return searchString;
	}

	public void setSearchString(String searchString) {
		this.searchString = searchString;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSidx() {
		return sidx;
	}

	public void setSidx(String sidx) {
		this.sidx = sidx;
	}

	public String getSord() {
		return sord;
	}

	public void setSord(String sord) {
		this.sord = sord;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Boolean get_search() {
		return _search;
	}

	public void set_search(Boolean _search) {
		this._search = _search;
	}

	public String getNd() {
		return nd;
	}

	public void setNd(String nd) {
		this.nd = nd;
	}

	public Filtros getFilters() {
		return filtros;
	}

	public void setFilters(String filtros) {
		JSONObject jo=JSONObject.fromObject(filtros);
		Filtros filtrosO=(Filtros)JSONObject.toBean(jo, Filtros.class);
		this.filtros = filtrosO;
	}

	public ArrayList<Object> getValoresBusqueda() {
		return valoresBusqueda;
	}

	public void setValoresBusqueda(ArrayList<Object> valoresBusqueda) {
		this.valoresBusqueda = valoresBusqueda;
	}

}
